using System.Data.Common;
using System.Data.SQLite;

namespace WyUnity.Data.DataAccess.Dialect
{
	public class SqliteDialect : ISqlDialect
	{
		public string NameFormat
		{
			get { return "`{0}`"; }
		}
		
		public DbParameter CreateParameter()
		{
			return new SQLiteParameter();
		}

		public DbConnection CreateConnection(string connectionString)
		{
			return new SQLiteConnection(connectionString);
		}

		public DbCommand CreateCommand()
		{
			return new SQLiteCommand();
		}

		public DbDataAdapter CreateDataAdapter()
		{
			return new SQLiteDataAdapter();
		}
	}
}